package com.bougaga.samplespringcloud.ribbon.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.bougaga.samplespringcloud.ribbon.service.CalculateService;

@RestController
public class CalcClientController {

	@Autowired
	private CalculateService calculateService;
	
	@RequestMapping(value = "/add", method = RequestMethod.GET)
    public String add() {
        return calculateService.addService();
    }
	
}
